package com.example.myworldcups.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.example.myworldcups.mapper.WorldCupMatchesMapper;
import com.example.myworldcups.model.WorldCupMatches;
import com.example.myworldcups.service.WorldCupMatchesService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lenovo
 * @date 2023/1/3
 */

@Slf4j
@Service
public class WorldCupMatchesServiceImpl implements WorldCupMatchesService {

    @Resource
    private WorldCupMatchesMapper worldCupMatchesMapper;

    @Override
    public List<WorldCupMatches> findAllOfBClass() {
        LambdaQueryWrapper<WorldCupMatches> queryWrapper = Wrappers.<WorldCupMatches>query().lambda();
//        queryWrapper.eq(WorldCupMatches::getWorldCupMatchesId, id);
//        queryWrapper.select(WorldCupMatches::getWorldCupMatchesId);
        return worldCupMatchesMapper.selectList(queryWrapper);
    }


}
